package com.groupbuying.common.connector;

import com.groupbuying.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;


/**
 * @anthor zmlmagic
 * @date 2019/1/10 5:45 PM
 * @company 蒙泰互联网公司
 * @des 服务商中心接口连接器
 **/

@Service
@FeignClient(name = "service-sysconfig")
public interface SysconfigFeign {
    @RequestMapping(value = "/o2okind/list", method = RequestMethod.GET)
    R getO2OKindList(@RequestParam Map<String, Object> params);

    @RequestMapping(value = "/area/list", method = RequestMethod.GET)
    R getAreaList(@RequestParam Map<String, Object> params);

    @RequestMapping(value = "/api/segment/get/leaf", method = RequestMethod.GET)
    String getUuidByLeaf();

    @RequestMapping(value = "/common/store/getAcountId", method = RequestMethod.GET)
    String getStoreAcountByLeaf();

    @RequestMapping(value = "/common/store/getProviderId", method = RequestMethod.GET)
    String getStoreProviderByLeaf();

    @RequestMapping(value = "/common/store/getStoreNoByLeaf", method = RequestMethod.GET)
    String getStoreNoByLeaf();

    @RequestMapping(value = "/common/store/getCounterNoByLeaf", method = RequestMethod.GET)
    String getCounterNoByLeaf();

    @RequestMapping(value = "/common/store/getPromotiondefineNo", method = RequestMethod.GET)
    String getPromotiondefineNo();

    // 银盛-获取企业类型
    @RequestMapping(value = "/keyinfo/companyType", method = RequestMethod.GET)
    R getKeyCompanyType();

    // 银盛-获取企业所属行业
    @RequestMapping(value = "/keyinfo/companyKind", method = RequestMethod.GET)
    R getKeyCompanyKind();

    // 银盛-获取银行账户类型
    @RequestMapping(value = "/keyinfo/bankAccountType", method = RequestMethod.GET)
    R getBankAccountType();

    // 银盛-获取银行卡类型
    @RequestMapping(value = "/keyinfo/bankCardType", method = RequestMethod.GET)
    R getBankCardType();

    // 积分中心-生成活动id
    @RequestMapping(value = "/common/currency/createActivityId", method = RequestMethod.GET)
    String createActivityID();

    // 积分中心-生成日志id
    @RequestMapping(value = "/common/currency/createLogId", method = RequestMethod.GET)
    String createLogID();

    // 用户中心-用户id
    @RequestMapping(value = "/common/customer/getCustomerId", method = RequestMethod.GET)
    String getCustomerID();

    // 订单中心-订单id
    @RequestMapping(value = "/common/order/getOrderId", method = RequestMethod.GET)
    String getOrderID();

    // 支付中心 - 订单id
    @RequestMapping(value = "/common/pay/getPayId", method = RequestMethod.GET)
    String getPayID();

    // 结算中心 - 订单id
    @RequestMapping(value = "/common/settle/getSettleId", method = RequestMethod.GET)
    String getSettleID();

}
